<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script
	src="${pageContext.request.contextPath}/resources/js/jquery-1.9.1.min.js"></script>
<script
	src="${pageContext.request.contextPath}/resources/js/bootstrap.min.js"></script>
<script
	src="${pageContext.request.contextPath}/resources/js/product/product_use_select.js"></script>
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/resources/css/bootstrap.min.css" />
	<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/resources/css/main_font.css" />	
<title>四川芝麻开门管理系统</title>
</head>
<body>
	<div class="container">
		<c:set var="housekeeper" scope="session" value="${housekeeper}" />
		<c:if test="${housekeeper==null}">
			<span><a
				href="${pageContext.request.contextPath}/pagejump/toLogin">您未登陆哦，请登陆！</a></span>
		</c:if>
		<c:if test="${housekeeper!=null}">
			<span>${sessionScope.housekeeper.name},欢迎您！<a
				href="${pageContext.request.contextPath}/pagejump/toLogin">退出登陆</a></span>
		</c:if>
	</div>
	<div class="container">
		<span><a
			href="${pageContext.request.contextPath}/pagejump/toIndex">主页</a>><a
			href="${pageContext.request.contextPath}/admin/product_use">产品登记管理</a>>产品使用查询</span>
	</div>
	<div class="container">
	<form action="${pageContext.request.contextPath}/#" id="selectUseForm">
		<select onchange="select_type()" id="select_type" name="select_type"><!-- 下拉框选择查询属性 -->
		    <option value="time" >安装时间查询</option>    
		   	<option value="product_name" >产品名称和型号查询</option> 
		    <option value="client_name" >客户名称查询</option>
		    <option value="client_phone">客户手机号查询</option>
		    <option value="uptown_name" >小区名查询</option> 
		    <option value="service_man" >服务人员名称查询</option> 
	    </select>
		<div id = "select_text"><!-- 输入查询信息 -->
			<input type="date" id="select_input" name="select_input" autocomplete="off">
		</div>
		<div>
			<button type="button" class="btn btn-success" onclick="selectUseList()">查询</button>
		</div>
		</form>
	</div>
	<div class="container">
		<div id="Return">
			<c:set var="response" scope="request" value="${serverResponse}" />
			<c:if test="${response.status==1}">
				<font color='red'>${response.msg}</font>
			</c:if>
		</div>
	</div>
</body>
</html>